package com.liujiahe.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author 刘家贺
 * @since 2022-06-30
 */
@Getter
@Setter
@TableName("t_city")
public class City implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @JsonProperty(value = "value")
    private Integer id;

    private Integer pid;

    @JsonProperty(value = "label")
    private String cityname;

    private Integer type;

    @TableField(exist = false)
    @JsonProperty(value = "children")
    private List<City> dis;


}
